Skip to content

Added a "dispose" method to PhaseLockedVocoder to clear the au wavetable #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 18, 2025

Conversation

maweibezahn
Copy link
Contributor

This method should be called by the user after they are done with the node.

public func dispose() {
au.setWaveTable([0.0])
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

@@ -79,7 +79,13 @@ public class PhaseLockedVocoder: Node {
self.amplitude = amplitude
self.pitchRatio = pitchRatio
}


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

The value range is 160.0...1000.0, but the default value was 1500.0
Nothing bad happened because of this, but now it is more correct, with a default value of 1000.0.
Copy link
Member

@aure aure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZitaReverb change seems accidental.

@@ -114,7 +114,7 @@ public class ZitaReverb: Node {
identifier: "EQ Frequency 2",
name: "EQ Frequency 2",
address: akGetParameterAddress("ZitaReverbParameterEqualizerFrequency2"),
defaultValue: 1500.0,
defaultValue: 1000.0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the default value was not in the value range. It was not a practical problem, but is more correct this way. See this issue: #41

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@aure aure merged commit 6328521 into AudioKit:main May 18, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants